<?php
require_once("includes/init.php");

timeTimerStart("Gathering queued emails from database... ");
$queuedEmails = databaseGetQueuedEmails();
timeTimerStop();
	
timeTimerStart("Checking emails... \n");
foreach ($queuedEmails as $email) {
	if ($globalDebug)
		print "Checking ".$email['id']."\n";
	
	emailSend($email);
}
print "\n";
timeTimerStop();
?>